package main

import (
	"log"
	"os"

	"gitee.com/kobeyyf/mkm/service/app"
)

func main() {
	config := "./config.yaml"
	if len(os.Args) == 2 {
		config = os.Args[1]
	}

	log.Println("load config from path :", config)

	service, err := app.NewApp(config)
	if err != nil {
		log.Println(err)
		return
	}

	if err := service.Run(); err != nil {
		log.Println(err)
		return
	}
}
